package cn.lhl.service.cargo;

import cn.lhl.dao.cargo.FactoryDao;
import cn.lhl.domain.cargo.Factory;
import cn.lhl.domain.cargo.FactoryExample;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class FactoryServiceImpl implements FactoryService {
    @Autowired
    private FactoryDao factoryDao;
    public List<Factory> findAll(FactoryExample example) {
        List<Factory> factoryList = factoryDao.selectByExample(example);
        return factoryList;
    }
}
